﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicsMarket_Desktop.EMServices;
namespace ElectronicsMarket_Desktop.BL
{
   public class CustomerBL
    {

       ServicesReleaseSoapClient services;
       CUSTOMER _customer;

       public CUSTOMER Customer
       {
           get { return _customer; }
           set { _customer = value; }
       }

       public CustomerBL()
       {
           Customer = new CUSTOMER();
           services = new ServicesReleaseSoapClient();
       }
       public CUSTOMER getCustomerByID()
       {
           Customer = services.getCustmerByID(Customer.CUSTOMER_ID);
           return Customer;
       }
       public List<CUSTOMER> getAllCustomer()
       {
           return services.getAllCustomer().ToList();
       }
    }
}
